import { useInsertionEffect } from "react";

// 自定义 hooks 
export function useCss(rule){
    useInsertionEffect(()=>{
        document.head.innerHTML = rule
    })
}